<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>等待条</title>
    <style type="text/css">
        div {
            height: 100px;
            width: 10px;
            background-color: black;
            border-radius: 5px;
            display: inline-block;
            
            animation-name: wait;
            animation-duration: 1s;            
            animation-iteration-count: infinite; /* 一直运动 */
            animation-timing-function: ease-in-out; /* 先快后慢 */
            
        }
        
        /* 定义动画 */
        @-webkit-keyframes wait {
            0%{
                transform: scaleY(0.4);
            }
            20%{
                transform: scaleY(1);
            }
            40%{
                transform: scaleY(0.4);
            }
            100%{
                transform: scaleY(0.4);
            }
        }
        
        div:nth-child(2){
            animation-delay: 0.1s;
        }
        div:nth-child(3){
            animation-delay: 0.2s;
        }   
        div:nth-child(4){
            animation-delay: 0.3s;
        }
        div:nth-child(5){
            animation-delay: 0.4s;
        }
        div:nth-child(6){
            animation-delay: 0.5s;
        }
    </style>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</body>
</html>